<?php
require('lib/verify.php');
require('lib/has_char.php');
require('lib/is_approved.php');
require('lib/is_admin.php');

$_category = "warmath";
$_title = "Admin / Add Loot";

$loot_credit = $_POST["loot_credit"];
$system_id = $system["system_id"];
$loot_item = $_POST["loot_item"];
$loot_level = $_POST["loot_level"];
$loot_character = $_POST["loot_character"];

$sql = "insert into wm_loots (loot_character, loot_item, loot_level, loot_system_id, loot_credit) values ('$loot_character', '$loot_item', '$loot_level', '$system_id', '$loot_credit')";
$result = $db->query($sql);

//if($system["system_id"]!=1) {
reprocessDKP($db, $system["system_id"]);
//}

header("Location: credit.php?id=$loot_credit");
?>

